docker login --username=18317890354 registry.cn-beijing.aliyuncs.com --password=sunhao271544

cd ../xdclass-common
mvn install

cd ../xdclass-gateway
mvn install -Dmaven.test.skip=true dockerfile:build
docker tag xdclass-cloud/xdclass-gateway:latest registry.cn-beijing.aliyuncs.com/1024-cloud-hao/api-gateway:v1.2
docker push registry.cn-beijing.aliyuncs.com/1024-cloud-hao/api-gateway:v1.2
echo "网关推送成功"


cd ../xdclass-user-service
mvn install -Dmaven.test.skip=true dockerfile:build
docker tag xdclass-cloud/xdclass-user-service:latest registry.cn-beijing.aliyuncs.com/1024-cloud-hao/xdclass-user-service:v1.2
docker push registry.cn-beijing.aliyuncs.com/1024-cloud-hao/xdclass-user-service:v1.2
echo "用户推送成功"


cd ../xdclass-product-service
mvn install -Dmaven.test.skip=true dockerfile:build
docker tag xdclass-cloud/xdclass-product-service:latest registry.cn-beijing.aliyuncs.com/1024-cloud-hao/xdclass-product-service:v1.2
docker push registry.cn-beijing.aliyuncs.com/1024-cloud-hao/xdclass-product-service:v1.2
echo "商品服务推送成功"

cd ../xdclass-coupon-service
mvn install -Dmaven.test.skip=true dockerfile:build
docker tag xdclass-cloud/xdclass-coupon-service:latest registry.cn-beijing.aliyuncs.com/1024-cloud-hao/xdclass-coupon-service:v1.2
docker push registry.cn-beijing.aliyuncs.com/1024-cloud-hao/xdclass-coupon-service:v1.2
echo "优惠券服务推送成功"


cd ../xdclass-order-service
mvn install -Dmaven.test.skip=true dockerfile:build
docker tag xdclass-cloud/xdclass-order-service:latest registry.cn-beijing.aliyuncs.com/1024-cloud-hao/xdclass-order-service:v1.2
docker push registry.cn-beijing.aliyuncs.com/1024-cloud-hao/xdclass-order-service:v1.2
echo "订单服务推送成功"


echo "shell脚本构建成功"